<ul>
@foreach($shouts as $shout)
	<li>
		<span class="shout-date">
			@if(date('Ymd') == date('Ymd', strtotime($shout->date_time)))
				Aujourd'hui {{ date('H:i', strtotime($shout->date_time)) }}
			@else
				{{ date('d/m H:i', strtotime($shout->date_time)) }}
			@endif
		</span>
		<?php $message = $shout->message; ?>
		@if(preg_match("/(http|https)\:\/\/[a-zA-Z0-9\-\_.]+\.[a-zA-Z]{2,4}(\/\S*)?/", $message, $url))
			<?php $message = preg_replace("/(http|https)\:\/\/[a-zA-Z0-9\-\_.]+\.[a-zA-Z]{2,4}(\/\S*)?/", '<a target="_blank" href="'.$url[0].'">'.$url[0].'</a> ', $message); ?>
		@endif
		@if(stripos($message,"/me") === 0 || stripos($message,"*") === 0)
			<span class="shout-name">{{$shout->name}} {{str_replace(array("/me","*"),"",$message)}}</span>
		@else
			<span class="shout-name">{{ $shout->name }}:</span>
			<span class="shout-message">{{ $message }}</span>
		@endif
	</li>
@endforeach
</ul>